package com.changgou.order.feign;

import com.changgou.entity.Result;
import com.changgou.order.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 订单feign接口
 */
@FeignClient(name = "order")
@RequestMapping("/order")
public interface OrderFeign {


    /***
     * 新增订单数据
     * @param order
     * @return
     */
    @PostMapping
    public Result add(@RequestBody Order order);
}
